﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    /// <summary>
    /// 调拨单明细表实体类，对应数据库表 dbo.wh_transfer_detail
    /// </summary>
    public class WhTransferDetail
    {
        /// <summary>
        /// 调拨单明细ID（主键）
        /// </summary>
        [Key]
        public long TransferDetailId { get; set; }

        /// <summary>
        /// 调拨单ID（外键，关联 WhTransfer.TransferOrderId）
        /// </summary>
        public long TransferOrderId { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string GoodsCode { get; set; }

        /// <summary>
        /// 商品类型ID
        /// </summary>
        public long GoodsTypeId { get; set; }

        /// <summary>
        /// 产品单位
        /// </summary>
        public string ProductUnit { get; set; }

        /// <summary>
        /// 调拨数量
        /// </summary>
        public decimal TransferQuantity { get; set; }

        /// <summary>
        /// 调拨单价
        /// </summary>
        public decimal TransferUnitPrice { get; set; }

        /// <summary>
        /// 调出位置
        /// </summary>
        public long FromLocation { get; set; }

        /// <summary>
        /// 调入位置
        /// </summary>
        public long ToLocation { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public string IsDelete { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public long CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public long UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 附件ID
        /// </summary>
        public long AttachmentId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
    }
}
